package com.medusa.gruul.payment.service.common.context;

/**
 *
 *
 * @author xiaoq
 * @ Description DetailsIdContextHolder.java
 * @date 2022-08-01 19:07
 */
public class DetailsIdContextHolder {
    private static final ThreadLocal<String> LOCAL = new ThreadLocal<>();

    public static void set(String detailsId){
        LOCAL.set(detailsId);
    }

    public static String get(){
        return LOCAL.get();
    }
    public static void remove(){
        LOCAL.remove();
    }
}
